﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'DeleteDetalleOrdenPedidoByOrden')
	BEGIN
		DROP  Procedure  DeleteDetalleOrdenPedidoByOrden
	END

GO

CREATE Procedure DeleteDetalleOrdenPedidoByOrden
	@idOrdenPedido int
AS

DELETE FROM DetalleOrdenPedido WHERE IdOrdenPedido = @idOrdenPedido

GO


GRANT EXEC ON DeleteDetalleOrdenPedidoByOrden TO PUBLIC

GO


